public class Movie {
    private String name;
    private String director;
    private String actors;
    private String description;
    private int duration; // 时长
    private double rating; // 评分

    public Movie(String name, String director, String actors, String description, int duration, double rating) {
        this.name = name;
        this.director = director;
        this.actors = actors;
        this.description = description;
        this.duration = duration;
        this.rating = rating;
    }

    public String getName() { return name; }
    public String getDirector() { return director; }
    public String getActors() { return actors; }
    public String getDescription() { return description; }
    public int getDuration() { return duration; }
    public double getRating() { return rating; }
    public void setRating(double rating) { this.rating = rating; }
    public void setDescription(String description) { this.description = description; }
}